package org.snail.common.xmlBean;
import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;

public class GroupClassification implements Serializable {
    String name;  //群分组
    List<Group> group;    //爱好

    public GroupClassification(){

    }
    public GroupClassification(String name, List<Group> group) {
        this.name = name;
        this.group = group;
    }
    @XmlAttribute(name="name")
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    @XmlElement(name = "group")
    public List<Group> getGroup() {
        return group;
    }
    public void setGroup(List<Group> hobby) {
        this.group = hobby;
    }

    @Override
    public String toString() {
        return "GroupClassification{" +
                "name='" + name + '\'' +
                ", groups=" + group +
                '}';
    }
}